package com.db.mylogger;

import org.slf4j.Logger;

public class Main {
	public static void main(String[] args) throws InterruptedException {
		MyLoggerFactory factory = new MyLoggerFactory();
		Logger logger = factory.getLogger("logfile.txt");
		Logger newLogger = factory.getLogger("logfile.txt");
		logger.debug("lsls");
		newLogger.debug("LL");
		logger.error("asd");
		while(true) {
			logger.info("tutu{}ototo","LLL");			
			logger.info(logger.getName());
			Thread.sleep(1000);
		}
	}
}